//
//  GoodsInfoCell.m
//  Shengzhuli
//
//  Created by FXGuo on 17/3/19.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "GoodsInfoCell.h"

@interface GoodsInfoCell()

@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UILabel *subTitleLab;
@property (weak, nonatomic) IBOutlet UILabel *priceLab;

@end

@implementation GoodsInfoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setGooodsModel:(AddGoodsModel *)gooodsModel
{
    _gooodsModel = gooodsModel;
    self.titleLab.text = gooodsModel.name;
    self.subTitleLab.text = gooodsModel.subtitle;
    if ([self.type isEqualToString:@"1"]) {
        self.priceLab.text = [NSString stringWithFormat:@"%.2f",gooodsModel.activeValue];
    }else {
        self.priceLab.text = [NSString stringWithFormat:@"%.2f",gooodsModel.price];
    }
    
    
}

@end
